width = input('Please enter width: ')
price_width = 10
item_width = width - price_width

print 'Width=%d Item_Width=%d Price_width=%d\n' %(width, item_width, price_width)

header_format = '%-*s%*s'
format = '%-*s%*.2f'
print '=' * width
print header_format %(item_width, 'Item', price_width, 'price')
print '-' * width
print format % (item_width, 'Apple', price_width, 0.4)
print format % (item_width, 'Pears', price_width, 0.5)
print format % (item_width, 'Cantaloupes', price_width, 1.92)
print format % (item_width, 'Dried Apricots', price_width, 8)
print format % (item_width, 'Prunes (4 lbs.)', price_width, 12)
